package com.hcnetsdk.jna;

public enum ErrorCode {

    ERROR0(0, "没有错误"),
    ERROR1(1, "用户名密码错误"),
    ERROR2(2, "权限不足"),
    ERROR3(3, "SDK 未初始化"),
    ERROR4(4, "通道号错误"),
    ERROR5(5, "连接到设备的用户个数超过最大"),
    ERROR6(6, "版本不匹配"),
    ERROR7(7, "设备不在线或网络原因引起的连接超时"),
    ERROR8(8, "向设备发送失败"),
    ERROR9(9, "从设备接收数据失败"),
    ERROR10(10, "从设备接收数据超时"),
    ;
    private final int code;

    private final String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
